        <f:view>
            <h:form id="form1">
                <rich:panel header="Subscriptions" style="border:0px" >
                <br>
                <h:commandButton id="add" image="/images/add2.png" action="nSubscription">
                    <f:setPropertyActionListener target="#{SubscriptionsBean.subscription}" value="#{null}" />
                </h:commandButton>
                <rich:toolTip for="add" direction="top-right" >
                    Add new subscription
                </rich:toolTip>
                <br>
                <rich:panel style="border: 0px" rendered="#{!SubscriptionsBean.newSubscription}" >
                    <h:outputText value="No subscriptions were added." rendered="#{empty sessionBean.ejbSession.owner.subscriptions}"/>
                    <rich:dataTable rendered="#{!empty sessionBean.ejbSession.owner.subscriptions}" id="subscriptionsTable" columns="6" rows="20" value="#{sessionBean.ejbSession.owner.subscriptions}" var="subscription" border="1" >
                        <rich:column>
                            <f:facet name="header">
                                <h:outputText value="Forums" />
                            </f:facet>
                            <h:panelGrid id="column1" >
                                <h:outputText value="#{subscription.forum.name}" />
                            </h:panelGrid>
                        </rich:column>
                        <rich:column>
                            <f:facet name="header">
                                <h:outputText value="Email me" />
                            </f:facet>
                            <h:panelGrid >
                                <h:outputText value="#{subscription.strategy}" />
                            </h:panelGrid>
                        </rich:column>
                        <rich:column>
                            <f:facet name="header">
                            </f:facet>
                            <h:panelGrid >
                                <h:commandButton id="add1" image="/images/edit.png" >
                                    <f:setPropertyActionListener target="#{SubscriptionsBean.newSubscription}" value="#{true}" />
                                    <f:setPropertyActionListener target="#{SubscriptionsBean.subscription}" value="#{subscription}" />
                                    <a4j:support event="onclick" reRender="panel" />
                                </h:commandButton>
                                <rich:toolTip for="add1" direction="bottom-right" >
                                    Edit
                                </rich:toolTip>
                                
                            </h:panelGrid>
                        </rich:column>
                        <rich:column>
                            <f:facet name="header">
                            </f:facet>
                            <h:panelGrid  >
                                <h:commandButton id="add2" image="/images/trash.png" action="#{SubscriptionsBean.removeSubscription}" >
                                    <f:setPropertyActionListener target="#{SubscriptionsBean.subscription}" value="#{subscription}" />
                                    <a4j:support event="onclick" reRender="panel" />
                                </h:commandButton>
                                <rich:toolTip for="add2" direction="bottom-right" >
                                    Delete
                                </rich:toolTip>
                            </h:panelGrid>
                        </rich:column>
                        
                    </rich:dataTable>
                </rich:panel>
                </rich:panel>
            </h:form>
        </f:view>

